package com.chinatechstar.event;

import com.chinatechstar.component.commons.utils.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.concurrent.*;

/**
 * 注气施工记录监听
 *
 * @author Rei
 * @date 2021/4/15
 */
@Component
public class ProdConstrRecordListener {
    private static final Logger logger = LoggerFactory.getLogger(ProdConstrRecordListener.class);
    private static ScheduledExecutorService service;
    private static ScheduledFuture<?> scheduledFuture;

    private static ProdConstrRecordListener prodConstrRecordListener;

    private ProdConstrRecordListener() {
    }

    @PostConstruct
    public void init() {
        prodConstrRecordListener = this;
    }



    /**
     * 初始化任务调度Service
     */
    private static void initService() {
        service = Executors.newScheduledThreadPool(1);
    }


}
